package com.example.actordemo3.total;

import akka.actor.ActorSystem;
import akka.actor.Props;
import com.example.actordemo3.cluster.ClusterActor;
import com.typesafe.config.ConfigFactory;

public class Back1 {

    public static void main(String[] args) {
        ActorSystem system1 = ActorSystem.create("sys",
                ConfigFactory.load("cluster1.conf"));
        system1.actorOf(Props.create(WordCountService.class),"wordCountService");
//
        ActorSystem system2 = ActorSystem.create("sys",
                ConfigFactory.load("cluster2.conf"));
        system2.actorOf(Props.create(WordCountService.class),"wordCountService");
////
        ActorSystem system3 = ActorSystem.create("sys",
                ConfigFactory.load("cluster3.conf"));
        system3.actorOf(Props.create(WordCountService.class),"wordCountService");
    }
}
